package com.nicefact.mailmonitor.entity;
import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable="true")
public class AppAdmin  implements Serializable {
	
	private static final long serialVersionUID = 13L;
	
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@PrimaryKey
	private Key key;
	
	@Persistent
	private String email;
	
	@Persistent
	private String nickName;
	
	@Persistent
	private Key appUserKey;	
	
	@Persistent
	private Integer noOfAccounts = 0; 
	
	@Persistent
	private Date createdDate = new Date();


	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public AppAdmin() {
		super();
		// TODO Auto-generated constructor stub
	}

	public AppAdmin(String email, String nickName) {
		super();
		this.email = email;
		this.nickName = nickName;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}



	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Key getAppUserKey() {
		return appUserKey;
	}

	public Integer getNoOfAccounts() {
		return noOfAccounts;
	}

	public void setNoOfAccounts(Integer noOfAccounts) {
		this.noOfAccounts = noOfAccounts;
	}

	public void setAppUserKey(Key appUserKey) {
		this.appUserKey = appUserKey;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	
	

	
	

}
